import request from '@/utils/request'
import {use} from "element-ui/src/locale";

// 查询退租对象列表
export function listQuit(query) {
  return request({
    url: '/domain/quit/list',
    method: 'get',
    params: query
  })
}

// 查询退租对象详细
export function getQuit(quitId) {
  return request({
    url: '/domain/quit/' + quitId,
    method: 'get'
  })
}

// 新增退租对象
export function addQuit(data) {
  return request({
    url: '/domain/quit',
    method: 'post',
    data: data
  })
}

// 修改退租对象
export function updateQuit(data) {
  return request({
    url: '/domain/quit',
    method: 'put',
    data: data
  })
}

// 删除退租对象
export function delQuit(quitId) {
  return request({
    url: '/domain/quit/' + quitId,
    method: 'delete'
  })
}

//退租详情
export function quitDetail(quitId, houseId, userId) {
  return request({
    url: '/domain/quit/detail/' + quitId + '/' + houseId + '/' + userId,
    method: 'get',
  })
}

//中介处理退租信息
export function handleQuitApp(quitId,houseId) {
  return request({
    url: '/domain/quit/handle/' + quitId + '/' + houseId,
    method: 'put',
  })
}
